<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>What is zhis sha?</title>
<script type="text/javascript" src="../static/easyui/jquery.min.js"></script>
<script type="text/javascript" src="../static/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../static/easyui/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" href="../static/easyui/themes/icon.css">
<link rel="stylesheet" href="../static/easyui/themes/metro-red/easyui.css">

<style type="text/css">

</style>
<script type="text/javascript">

</script> 
</head>
<body>
<link rel="stylesheet" href="../static/zyc/css/dept-table.css?<%=Math.random()%>">
<link rel="stylesheet" href="../static/oyp/css/recruit_apply.css?<%=Math.random()%>">
   <script type="text/javascript">
		$(function(){
			//初始化表格
			$('#depttable').datagrid({
			    url:'dept_table',
			    columns:[[
			    	{field:'deptname',width:180,title:'部门',align:'center'},
					{field:'empsum',width:230,title:'人数',align:'center'},
					{field:'depttime',width:220,title:'创建时间',align:'center',
						formatter: function(value,row,index){
							return new Date(value).getFullYear() + '-' + (new Date(value).getMonth() + 1) + '-' + new Date(value).getDate();
						}	
					},
					{field:'deptzy',width:160,title:'简介',align:'center'},
					{field:'caozuo',width:140,title:'操作',align:'center',formatter:chaxundept}
			    ]],
			    pagination:true,
			    pageNumber:1,
			    pageSize:10,
			    pageList:[5,10]
			});
			
		});
		function chaxundept(value, row, index) {
			return "<span onclick='dept_ta("+row['deptid']+")' class='easyui-linkbutton'>详情查询</span>";
		}
		function dept_ta(i){
			var text = '部门详情';
			var url = 'zyc/dept-det';
			var data = 'id='+i;
			adds(text,url,data);
		}
	</script>
	<div class="full_scr bj_home">
		<div class="bj_img" style="background-image:${hopa.perPmsZts[0].ztback}"></div>
		<div class="bj_txt">
			<div class="bj_small bj_s_w7">
			
			    <div class="depttable_box">
			       <div class="topbox">
			           <div class="sousuobox">
			                 <span class="title_zhong text_style_title">部门查询</span>
			           </div>
			       </div>
			       <div class="biaobox">
			           <table id="depttable" class="easyui-datagrid" data-options="width:1030,height:380,fitColumns:true">
			           </table>
			       </div>
			    </div>
			    
			</div>
		</div>
	</div>
    
</body>
</html>